package com.springmvc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.springmvc.dao.ItemsDao;
import com.springmvc.entity.Items;
import com.springmvc.entity.ItemsQueryVo;
import com.springmvc.service.ItemsService;

/**
 * @author Administrator
 *
 */
@Service
@Transactional
public class ItemsServiceImpl implements ItemsService {
	
	@Autowired
	private ItemsDao itemsDao;
	
	@Override
	public List<Items> queryItemsListByCondidition(ItemsQueryVo itemsQueryVo) {
		return itemsDao.queryItemsListByCondition(itemsQueryVo);
	}

	@Override
	public Items queryItemsById(Integer id) {
		return itemsDao.queryItemsByPrimaryKey(id);
	}

	@Override
	public void udpateItemsById(Items items) {
		itemsDao.updateItemsByPrimaryKey(items);
	}

}
